<template>
  <div class="SetExamTime">
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item>考试时间表</el-breadcrumb-item>
      <el-breadcrumb-item><span class="fs14 bold">设置考试时间</span></el-breadcrumb-item>
    </el-breadcrumb>

    <SetExamTimeDate v-if="!curIndex" @setCurIndexHandle="setCurIndexHandle" />
    <SetExamTimeTable v-if="curIndex" @setCurIndexHandle="setCurIndexHandle" />
  </div>
</template>

<script type="text/ecmascript-6">
  import SetExamTimeDate from './components/SetExamTimeDate'
  import SetExamTimeTable from './components/SetExamTimeTable'

  export default {
    components: {SetExamTimeDate, SetExamTimeTable},
    data () {
      return {
        curIndex: 0
      }
    },
    methods: {
      setCurIndexHandle (index) {
        this.curIndex = index
      }
    }
  }
</script>

<style scoped rel="stylesheet/scss" type="text/scss" lang="scss">
</style>

